package com.bite.springbook.Model;

import lombok.Data;

@Data
public class PageRequest {
    private Integer pageNum=1; //当前页
    private Integer pageSize = 10; //显示页数
    private Integer offset;

    public Integer getOffset() {
        return (pageNum - 1) * pageSize;
    }
}
